
import { http } from "../../utils/http.js"
//地址列表
function addersslist(data){
	return http({
		url:"/api/leju/front/address/list",
		data
	})
}
//登录
function doLogin(data){
	return http({
		url:"/api/leju/front/user/doLogin",
		data
	})
}
//注册
function register(data){
	return http({
		url:"/api/leju/front/user/register",
		data
	})
}
//购物车列表
function cartList(data){
	return http({
		url:"/api/leju/front/cart/cartList",
		data
	})
}
//新增地址
function addresssave(data){
	return http({
		url:"/api/leju/front/address/save",
		data
	})
}

//地址详情
function addressdetail(data){
	return http({
		url:"/api/leju/front/address/detail",
		data
	})
}
//删除地址
function addressdel(data){
	return http({
		url:"/api/leju/front/address/del",
		data
	})
}
//更新地址
function addressupdate(data){
	return http({
		url:"/api/leju/front/address/update",
		data
	})
}
//批量添加订单
function addOrderBatch(data){
	return http({
		url:"/api/leju/front/order/addOrderBatch",
		method:'post',
		data
	})
}
//支付订单
function payConfirm(data){
	return http({
		url:"/api/leju/front/order/payConfirm",
		method:'post',
		data
	})
}
//查询订单
function orderlist(data){
	return http({
		url:"/api/leju/front/order/list",
		method:'get',
		data
	})
}
//取消未付款的订单
function delOrderPre(data){
	return http({
		url:"/api/leju/front/order/delOrderPre",
		method:'get',
		data
	})
}
//退单列表
function orderBackList(data){
	return http({
		url:"/api/leju/front/order/orderBackList",
		method:'get',
		data
	})
}

export default{
	addersslist,
	doLogin,
	register,
	cartList,
	addresssave,
	addressdetail,
	addressdel,
	addressupdate,
	addOrderBatch,
	payConfirm,
	orderlist,
	delOrderPre,
	orderBackList
	
}